package com.tql.mall.boss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tql.mall.model.product.BaseCategory1;

import java.util.List;

public interface CategoryOneService extends IService<BaseCategory1> {
    String saveLevelOne(BaseCategory1 baseCategory1);

    /**
     * 判断一级分类的category1Id是否存在
     * @param category1Id
     * @return
     */
    boolean isExist(Long category1Id);

    String deleteById(Long id);

//    List<FirstLevel> getAllClassifyInfo();

    String updateCategoryName(Long id, String newName);

    List<BaseCategory1> getAllCategory1List();

}
